#include "move_vector.h"

// "pushes" a vector a in the direction given by a b a distance dist

void push_vector(sph_vector &a, sph_vector dir, double dist)
{
	a = a + dir*dist;
}

// moves vector a back to the sphere in a normal direction

void back_to_sphere(sph_vector &a)
{
    double dist = a.norm() - 1;
	sph_vector dir = dir_vector(sph_vector(0,0,0),a);

	push_vector(a,dir,dist);

}
